package com.wondertek.poms.dao.repo;

import com.wondertek.poms.dao.po.DisplayFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

@Repository
public interface IDisplayFileDao extends JpaRepository<DisplayFile,Long> {

    @Transactional
    void deleteByContentId(String contentId);

    List<DisplayFile> findAllByContentId(String contentId);
}
